<?php
/* @var $this HyBInfoController */
/* @var $model HyBInfo */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'hy-binfo-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'CateID'); ?>
		<?php echo $form->textField($model,'CateID',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'CateID'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'SpecialID'); ?>
		<?php echo $form->textField($model,'SpecialID',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'SpecialID'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Title'); ?>
		<?php echo $form->textField($model,'Title',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'Title'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'TitleColor'); ?>
		<?php echo $form->textField($model,'TitleColor',array('size'=>7,'maxlength'=>7)); ?>
		<?php echo $form->error($model,'TitleColor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Author'); ?>
		<?php echo $form->textField($model,'Author',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'Author'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Editor'); ?>
		<?php echo $form->textField($model,'Editor',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'Editor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'FirstPhoto'); ?>
		<?php echo $form->textField($model,'FirstPhoto',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'FirstPhoto'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Photos'); ?>
		<?php echo $form->textField($model,'Photos',array('size'=>60,'maxlength'=>210)); ?>
		<?php echo $form->error($model,'Photos'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'SubTitle'); ?>
		<?php echo $form->textField($model,'SubTitle',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'SubTitle'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Content'); ?>
		<?php echo $form->textArea($model,'Content',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'Content'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Tag'); ?>
		<?php echo $form->textField($model,'Tag',array('size'=>60,'maxlength'=>70)); ?>
		<?php echo $form->error($model,'Tag'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'RelationID'); ?>
		<?php echo $form->textField($model,'RelationID',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'RelationID'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'FromSite'); ?>
		<?php echo $form->textField($model,'FromSite',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'FromSite'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Intro'); ?>
		<?php echo $form->textArea($model,'Intro',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'Intro'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'CustomLinks'); ?>
		<?php echo $form->textField($model,'CustomLinks',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'CustomLinks'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Role'); ?>
		<?php echo $form->textField($model,'Role'); ?>
		<?php echo $form->error($model,'Role'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'IsAuditing'); ?>
		<?php echo $form->textField($model,'IsAuditing'); ?>
		<?php echo $form->error($model,'IsAuditing'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'IsLock'); ?>
		<?php echo $form->textField($model,'IsLock'); ?>
		<?php echo $form->error($model,'IsLock'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'SortNum'); ?>
		<?php echo $form->textField($model,'SortNum'); ?>
		<?php echo $form->error($model,'SortNum'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Lang'); ?>
		<?php echo $form->textField($model,'Lang',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'Lang'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'TopNum'); ?>
		<?php echo $form->textField($model,'TopNum'); ?>
		<?php echo $form->error($model,'TopNum'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ExtractNum'); ?>
		<?php echo $form->textField($model,'ExtractNum'); ?>
		<?php echo $form->error($model,'ExtractNum'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'CreationDate'); ?>
		<?php echo $form->textField($model,'CreationDate'); ?>
		<?php echo $form->error($model,'CreationDate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ModifiedDate'); ?>
		<?php echo $form->textField($model,'ModifiedDate'); ?>
		<?php echo $form->error($model,'ModifiedDate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'CreationUserID'); ?>
		<?php echo $form->textField($model,'CreationUserID'); ?>
		<?php echo $form->error($model,'CreationUserID'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ModifiedUserID'); ?>
		<?php echo $form->textField($model,'ModifiedUserID'); ?>
		<?php echo $form->error($model,'ModifiedUserID'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ContributionUserID'); ?>
		<?php echo $form->textField($model,'ContributionUserID'); ?>
		<?php echo $form->error($model,'ContributionUserID'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'PublishDate'); ?>
		<?php echo $form->textField($model,'PublishDate'); ?>
		<?php echo $form->error($model,'PublishDate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Clicks'); ?>
		<?php echo $form->textField($model,'Clicks'); ?>
		<?php echo $form->error($model,'Clicks'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->